package com.css.zfzx.sjcj.modules.hddcVolcanicSamplePoint.repository;

import com.css.zfzx.sjcj.modules.hddcVolcanicSamplePoint.repository.entity.HddcVolcanicsamplepointEntity;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

import java.util.List;

/**
 * @author zhangcong
 * @date 2020-11-27
 */
public interface HddcVolcanicsamplepointRepository extends JpaRepository<HddcVolcanicsamplepointEntity, String> {
    @Query(nativeQuery = true, value = "select * from hddc_Volcanicsamplepoint where project_name in :projectIds")
    List<HddcVolcanicsamplepointEntity> queryHddcVolcanicsamplepointsByProjectId(List<String> projectIds);
    @Query(nativeQuery = true, value = "select * from hddc_Volcanicsamplepoint where task_name in :projectIds")
    List<HddcVolcanicsamplepointEntity> queryHddcVolcanicsamplepointsByTaskId(List<String> projectIds);
}
